import MyPlugin from "../../../main";
import { Notice} from "obsidian";

export function 左侧边栏的按钮功能(this_:MyPlugin){
	// This creates an icon in the left ribbon.
    const ribbonIconEl = this_.addRibbonIcon('dice', '史锦泽左边栏的插件', (evt: MouseEvent) => {
        // Called when the user clicks the icon.
        new Notice('史锦泽的插件!');
    });
    // Perform additional things with the ribbon
    ribbonIconEl.addClass('my-plugin-ribbon-class');

    // This adds a status bar item to the bottom of the app. Does not work on mobile apps.
    const statusBarItemEl = this_.addStatusBarItem();
    statusBarItemEl.setText('史锦泽的插件');
}
